# -*- coding: utf-8 -*-
from django.db import models
from django.conf import settings
import os

class InventarioManager(models.Manager):
    
    def get_file_path(self, username):
        path = os.path.join(settings.FILE_UPLOAD_TEMP_DIR, username)     
        if os.path.exists(path) is False:
            os.mkdir(path)        
        return path